﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BotonJXC.DAO;
using BotonJXC.Entity;

namespace BotonJXC.BLL
{
    public class FinanceBillLogsBll : BaseBLL<FinanceBillLogsDao, FinanceBillsLogs, int>
    {

        /// <summary>
        /// 根据出库单编号查询订单
        /// </summary>
        /// <param name="orderSn"></param>
        /// <returns></returns>
        public FinanceBillsLogs findFinanceBillsLogsBySn(string BillSn, string BillType)
        {

            IList<FinanceBillsLogs> list = base.Dao.findFinanceBillsLogsBySn(BillSn, BillType);
            if (list != null && list.Count > 0)
            {
                return list[0];
            }
            else
            {
                return null;
            }
        }        /// <summary>
        /// 根据出库单编号查询订单
        /// </summary>
        /// <param name="orderSn"></param>
        /// <returns></returns>
        public FinanceBillsLogs findFinanceBillsLogsBySn(string BillSn, string BillType, Int32 BillSign)
        {

            IList<FinanceBillsLogs> list = base.Dao.findFinanceBillsLogsBySn(BillSn, BillType, BillSign);
            if (list != null && list.Count > 0)
            {
                return list[0];
            }
            else
            {
                return null;
            }
        }
    }
}
